"""
打印说明配置
"""

from odoo import models, api, fields


class ReportInstructions(models.Model):
    _name = 'report.instructions'
    _description = '打印说明'

    type = fields.Selection([('sale', 'Sale'), ('purchase', 'Purchase'),
                             ('stock', 'Stock'), ('account', 'Account')], string='类型', required=True)
    content = fields.Char(string='内容', required=True)
    is_active = fields.Boolean(string='启用', default=True)
    sequence = fields.Integer(string='排序', default=1)
